package com.peycard.persistence.dao.local;
import java.util.List;

import javax.ejb.Local;

import com.peycard.persistence.PersistenceException;
import com.peycard.persistence.entities.Company;

@Local
public interface CompanyDAOLocal extends GenericDAO<Company, Long> {

	Company save(String commercialName, String socialReason, String giro,
			String rfc, String infonavit, String legalRepresent, String stps,
			String stpsRepresent, String country, String state, String address,
			String extNumb, String subur, String zipCode, String tel1,
			String tel2, String fax, String email, String webPage,
			String activeCompany, String userCommercial)
			throws PersistenceException;

	Company update(String commercialName, String socialReason, String giro,
			String rfc, String infonavit, String legalRepresent, String stps,
			String stpsRepresent, String country, String state, String address,
			String extNumb, String subur, String zipCode, String tel1,
			String tel2, String fax, String email, String webPage,
			String activeCompany, String userCommercial, String idCompany)
			throws PersistenceException;

	void setDown(String idCompany, String adminUser)
			throws PersistenceException;

	List<Company> getAll() throws PersistenceException;

}
